package com.lzy.shops.service;

import com.lzy.shops.bean.Goods;
import com.lzy.shops.bean.PageBean;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface GoodsService {
    public PageBean<Goods> findAll(Map<String,Object> maps);
    public Collection<Goods> findByGoodsId(Integer goodsId);
    public Integer addGoods(Goods goods);
    public Integer deleteGoods(Integer goodsId);
    public Integer updateGoods(Goods goods);
    public Goods getRandomGoods(String type);
    public List<Goods> findGoodsBySearch(String serach);
}
